package com.blog.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 任浩
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageVO {

    private int id;  //帖子id
    private String userId;  //代表当前帖子是哪个用户发的
    private String title; //帖子的标题
    private String content; //帖子的内容
    private int type;  //帖子的类型  0-普通; 1-置顶
    private int status;  //帖子的状态  0-正常; 1-精华; 2-拉黑
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; //发帖时间
    private int commentCount; //评论数
    private double score ; //当前帖子的分数，就是根据分数类排序，热度之类的。
    private Integer viewCount;

    private String username;
    private String password;
    private String salt;
    private String email;
    private String activationCode;  //
    private String headerUrl;  //头像地址

    //这是存储点赞的信息。
    private LikeVO likeVO;

}
